package com.hd.day05;

public class String01 {
    public static void main(String[] args) {
        String res = "[0-9]{5,8}";
        String user = "12345";
        System.out.println(user.matches(res));


        String res1 = "^([a-zA-Z]|[0-9])(\\w|\\-)+@[a-zA-Z0-9]+\\.([a-zA-Z]{2,4})$";

        String email = "132369we2@qq.com";
        System.out.println(email.matches(res1));
        System.out.println("\"\"");
    }
}
